<section class="grid_12">
	<div class="block-border">
		<form action="<?php echo $this->path('status'); ?>" method="post" id="table_form" class="block-content form" onsubmit="return status(this);">
			<h1>
				Usu&aacute;rio
				<a href="javascript:;" onClick="dialog('<?php echo $this->baseUrl('admin/usuario/form'); ?>');">
					<img width="16" height="16" src="<?php echo $this->baseUrl('public/images/admin/icons/fugue/plus-circle-blue.png'); ?>"> 
					novo
				</a>
			</h1>

			<div class="no-margin last-child">

				<table width="100%" cellspacing="0" class="table sortable no-margin">
					<thead>
						<tr>
							<th class="black-cell sorting_disabled" style="width: 17px;">
								<span class="success"></span>
							</th>
							<th scope="col" style="width: 121px;" class="sorting">
								<span class="column-sort">
									<a class="sort-up" title="Sort up" href="#"></a>
									<a class="sort-down" title="Sort down" href="#"></a>
								</span>
								Status
							</th>
							<th scope="col" style="width: 351px;" class="sorting">
								<span class="column-sort">
									<a class="sort-up" title="Sort up" href="#"></a>
									<a class="sort-down" title="Sort down" href="#"></a>
								</span>
								Nome
							</th>
							<th scope="col" style="width: 351px;" class="sorting">
								<span class="column-sort">
									<a class="sort-up" title="Sort up" href="#"></a>
									<a class="sort-down" title="Sort down" href="#"></a>
								</span>
								E-mail
							</th>
							<th scope="col" style="width: 131px;" class="sorting">
								<span class="column-sort">
									<a class="sort-up" title="Sort up" href="#"></a>
									<a class="sort-down" title="Sort down" href="#"></a>
								</span>
								Dt. Cadastro
							</th>
							<th class="table-actions sorting_disabled" scope="col" style="width: 80px;">A&ccedil;&otilde;es</th>
						</tr>
					</thead>

					<tfoot>
						<tr>
							<td colspan="8">
								<img width="16" height="16" class="picto" src="<?php echo $this->baseUrl( 'public/images/admin/icons/fugue/arrow-curve-000-left.png' ); ?>"> 
								<a class="button" href="javascript:checked(true);">Marcar Todos</a> 
								<a class="button" href="javascript:checked(false);">Desmarcar Todos</a>
								<select class="small" id="table-action" name="table-action">
									<option value=""></option>
									<option value="1">Liberar</option>
									<option value="0">Bloquear</option>
								</select>
								<button class="small" type="submit" disabled>Ok</button>
							</td>
						</tr>
					</tfoot>

					<tbody>
						<?php foreach ( $this->rows as $row ) : ?>
							<tr class="<?php echo $this->cycle( array( 'odd', 'even' ) )->next(); ?>">
								<td class="th table-check-cell sorting_1">
									<input type="checkbox" value="<?php echo $row->user_id; ?>" name="selected[]">
								</td>
								<td><?php echo $this->showStatus( $row->user_status ); ?></td>
								<td><?php echo $row->user_nome; ?></td>
								<td><?php echo $row->user_email; ?></td>
								<td><?php echo $this->date($row->user_dtcadastro); ?></td>
								<td class="table-actions" style="width: 80px;">
									<a class="with-tip" title="Editar" href="javascript:;" onclick="dialog('<?php echo $this->path( 'edit/id/' ), $row->user_id; ?>');">
										<img width="16" height="16" src="<?php echo $this->baseUrl( 'public/images/admin/icons/fugue/pencil.png' ); ?>">
									</a>
									<a class="with-tip" title="Remover" href="javascript:;" onclick="remove(this, '<?php echo $this->path('remove') ?>', <?php echo $row->user_id; ?>);">
										<img width="16" height="16" src="<?php echo $this->baseUrl( 'public/images/admin/icons/fugue/cross-circle.png' ); ?>">
									</a>
								</td>
							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>

			</div>
		</form>
	</div>
</section>